package com.brogent.android.selector;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.AdapterView.OnItemClickListener;

public class SelectorActivity extends Activity{
    /** Called when the activity is first created. */
    private String[] ITEMS = {"A", "B", "C", "D"};
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

      ListView view = (ListView)findViewById(R.id.list);
      view.setAdapter(new ArrayAdapter<Object>(this, R.layout.menu_item, ITEMS));
      view.setOnItemClickListener(new OnItemClickListener() {

        //@Override
        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            // TODO Auto-generated method stub
            
        }
          
      });    
    }
}

